<?php
//=========================
//Vuong Van Binh
//Wanbin@vietnambiz.com
//Send message process
//=========================	
include ADMIN_INCLUDE_DIR."/header.php";
send_message()
?>
<div class="container_l">
		<div class="title_user"><img src="images/icon1.gif" />Gửi tin cá nhân tới thành viên</div>
		<div class="table_user">
			<div class="table_user_in2">
			<?php 
					show_error(); 
					show_success(); 
			?>
				<fieldset>
				<form action="" method="post">
					<div class="lineaddnew">
					
						<?php if(!empty($_GET["members"])){?>
						<div class="lineform">
							<div class="divlabel">Tên đăng nhập: <font color="#FF0000">*</font></div>
							<div class="divform"><input type="text" name="username" value="<?php echo $_GET["members"]; ?>" /></div>
						</div>
						<?php }else{ ?>
						<div class="lineform">
							<div class="divlabel">Tên đăng nhập: <font color="#FF0000">*</font></div>
							<div class="divform"><input type="text" name="username" value="<?php echo stripslashes(htmlentities($_POST["username"])); ?>" /></div>
						</div>
						<?php }?>
						
						<div class="lineform">
							<div class="divlabel">Tiêu đề: <font color="#FF0000">*</font></div>
							<div class="divform"><input type="text" name="title" value="<?php echo stripslashes(htmlentities($_POST["title"])); ?>" /></div>
						</div>
						<div class="lineform">
							<div class="divlabel">Nội dung: <font color="#FF0000">*</font></div>
							<div class="divform"><textarea name="content" id="content" rows="10"><?php echo $_POST["content"]; ?></textarea> </div>
						</div>
						
						
						
						<div class="spacer1"><span></span></div>
					</div>
					<div class="spacer1"><span></span></div>
				</fieldset>
				
				<div class="linesubmit">
					<input type="hidden" name="send" value="okie" />
					<input type="submit" name="send" value="Gửi tin nhắn" class="button" />
				</div>
			</form>
				
			</div>
		</div>
	</div>
<?php
include "inc/right.php"; 
include ADMIN_INCLUDE_DIR."/footer.php"; 
?>